<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <link th:replace="publicPart ::commonHead">
    <!--    css,img资源-->
    <link href="../static/css/publicPage.css" th:href="@{/css/publicPage.css}"rel="stylesheet" type="text/css">
    <link th:href="@{jQuery/showdown.min.js}">
    <script src="../static/jQuery/showdown.min.js" th:src="@{/jQuery/showdown.min.js}"></script>
    <!--    公共部件样式-->
    <!--    <link rel="stylesheet" href="./css/publicPart.css">-->
</head>
<body>
<div class="main">
    <div th:replace="publicPart :: navbar"></div>
    <div id="back_top" class="box3">
        <img src="https://g.csdnimg.cn/side-toolbar/3.0/images/fanhuidingbucopy.png" alt="" srcset="">
    </div>
<!--        <div class="m-auto d-flex" style="height:96px;width: 80%">-->
<!--            <div class="mr-5" style="width: 96px;height: auto">-->
<!--                <img class="img-circle" src="https://cdn.acwing.com/media/user/profile/photo/11531_sm_ef1b0ba0de.jpg" alt="头像" style="border-radius: 50%; height:100%; width:100%;" th:src="${session.userInfo.userIcon}">-->
<!--            </div>-->
<!--            <div style="height: auto;">-->
<!--                <div style="height: 30px">-->
<!--                    <h2 class=""th:text="${session.userInfo.userName}">userName</h2>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->

    <div class="container " style="width: 1000px;">
        <div id="write"></div>
        <div class="mb-4 mt-1" style="height: 160px;width: auto;padding-top: 45px">
            <div class="m-auto d-flex" style="height:96px;width: 80%">
                <div class="mr-5" style="width: 96px;height: auto">
                    <img class="img-circle" src="https://cdn.acwing.com/media/user/profile/photo/11531_sm_ef1b0ba0de.jpg" alt="头像" style="border-radius: 50%; height:100%; width:100%;" th:src="${session.masterInfo.userIcon}">
                </div>
                <div style="height: auto;">
                    <div style="height: 30px">
                        <h2 class=""th:text="${session.masterInfo.userName}">userName</h2>
                    </div>
                </div>
            </div>
        </div>
<!--        <div style="margin-bottom: 4px">-->
<!--            <tr>-->
<!--                <td >-->
<!--                    <button class="col-4 btn btn-lg btn-danger" id="btndel" onclick='buttondel()'>批量删除</button>-->
<!--                </td>-->
<!--                <div id="hid" style="width:50px">-->
<!--                <td>-->
<!--            <input type="checkbox" id="checkall" onclick='selectall(this.checked)'>-->
<!--                </td>-->
<!--                <td>-->
<!--            全选-->
<!--                </td>-->
<!--                </div>-->
<!--            </tr>-->
<!--        </div>-->
        <form id="allform">
        <table class="table table-hover">
            <thead>
            <tr>
                <td class="highpower"><input type="checkbox" id="checkall" onclick='selectall(this.checked)'></td>
                <td>标题</td>
                <td>创建日期</td>
                <td class="highpower"><button  type="button"style="color: red;border: none" id="btndel" onclick="buttondel()">批量删除</button></td>
                <td class="highpower">操作</td>
            </tr>
            </thead>
            <tbody id="adc">
<!--            <tr id="adc">-->
<!--            </tr>-->
<!--            <div id="adc"></div>-->
            </tbody>
        </table>
        </form>
<!--        <form id="allform">-->
<!--        <div id="adc"></div>-->
<!--        </form>-->
    </div>
</div>
<!-- Modal -->
<div class="modal fade" id="editModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">删除</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div>确定要删除[<span id="editblogTitle"></span>]吗？</div>
                <form id="editform">
                    <!--                    存放要修改数据的主键，作为条件使用-->
                    <input type="hidden" name="blogId" id="editblogId">
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" onclick='del()'>确定</button>
            </div>
        </div>
    </div>
</div>
<!--<div class="modal fade" id="suredel" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">-->
<!--    <div class="modal-dialog">-->
<!--        <div class="modal-content">-->
<!--            <div class="modal-header">-->
<!--                <h5 class="modal-title" >全部删除</h5>-->
<!--                <button type="button" class="close" data-dismiss="modal" aria-label="Close">-->
<!--                    <span aria-hidden="true">&times;</span>-->
<!--                </button>-->
<!--            </div>-->
<!--            <div class="modal-body">-->
<!--                <div>确定要全部删除吗？</div>-->
<!--            </div>-->
<!--            <div class="modal-footer">-->
<!--                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>-->
<!--                <button type="button" class="btn btn-primary" onclick='buttondel()'>确定</button>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
<!--</div>-->
</body>
<!--    js资源-->
<!--    公共部件js-->
<!--<script type="text/javascript" src="js/publicPart.js"></script>-->

<script src="../static/js/home.js" th:src="@{/js/home.js}"></script>
</html>